// pages/my/set/set.js
const app = getApp()
Page({
  data: {
    role:''
  },
  onLoad: function (options) {
    app.getMemInfo().then(res=>{
      this.setData({
        role:res.data.role
      })
    })
  },
  feeSetTap(event){
    wx.navigateTo({
      url: 'feeSet/feeSet',
    })
  },
  changePassWordTap(event) {
    wx.navigateTo({
      url: 'changePassWord/changePassWord',
    })
  },
  bindQuit(){
    wx.removeStorage({
      key:'memInfo',
      success(){
        wx.reLaunch({
          url:'../../index/index'
        })
      }
    })
  },
  bindToMyFactory(){
    wx.navigateTo({
      url:'../../my/myFactory/myFactory'
    })
  },
  bindToMyAddress(){
    wx.navigateTo({
      url:'myAddress/myAddress'
    })
  },
  bindToStroeAccount(){
    wx.navigateTo({
      url:'../../my/shopAccount/shopAccount'
    })
  },
  bindToBanner(){
    wx.navigateTo({
      url:'../../package/saleTools/saleTools'
    })
  },
  bindShop(){
    wx.navigateTo({
      url:'branchShop/branchShop'
    })
  },
  bindCoupon(){
    wx.navigateTo({
      url:'../../package/coupon/myCoupon'
    })
  }
})
